<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="style/wpo_alog_speed.js" async></script>
<script src="style/alog.js"></script>
<script src="style/jquery-1.9.1.min.js"></script>
<title>{$INI['system']['abbreviation']}</title>
<link rel="stylesheet" type="text/css" href="style/common_css_0_6c6ef1d.css">
<link rel="stylesheet" type="text/css" href="style/common_css_1_ad94b5d.css">
<link rel="stylesheet" type="text/css" href="style/list_css_0_6f15796.css">
<script>alog('speed.set', 'ht',new Date);</script>

<script type="text/javascript">

$(document).ready(function() {
     $(".w-sort").children("li").click(function(){
		  $(this).toggleClass("active").siblings().removeClass("active");
		  var id = $(this).attr("data-type");	  
		  $("#"+id).toggleClass("cblock").siblings().removeClass("cblock");
		  
		  if($(this).attr("class") == "active"){
		      $(".w-sort__mask").addClass("cblock")  
		  }else{
			 $(".w-sort__mask").removeClass("cblock");
		}
	});
});

function showSub(i){
	$(".submenu").css("display","none");
	//$(".menu").css("backgroud-color","#ffffff");
	//$("#menu"+i).css("backgroud-color","#efefef");
	/*var menu=document.getElementsByClassName("menu");
	for(var i=0;i<menu.length;i++){
		menu.item(i).style.backgroundColor="#ffffff";
		}*/
	//document.getElementById("menu"+i).style.backgroundColor="#efefef";
	var sub=document.getElementById("subcate"+i);
	if(sub.style.display=="block"){
		sub.style.display="none";
		}else{
			sub.style.display="block";
			
			}
	}
function closeSub(i){
	$("#"+"subcate"+i).css("display","none");
}
function closeMenu(i){
	$("#"+"subcate"+i).css("display","block");
}
</script>
<style>
#gotop{
    -webkit-transform:translate3d(0,0,0);
    position:absolute;
    right:5px;
    opacity:0;
    -webkit-transition-property:-webkit-transform;
     cursor:pointer;
}
</style>

</head>
<body mon="position=list">

<!--{include m_header}-->
<!--{include wap_headers}-->

<section class="w-index-search">
  <form method="get" action="search.php" class="j-search-form">
    <div class="search-input-wrap">
      <input name="searchName" class="j-search-input" autocomplete="off" placeholder="请输入您想找的产品" type="text">
      <i id="j-clear-input"></i>
      <button type="submit" class="j-search-submit">搜索</button>
    </div>
    <div class="j-search-suggestion search-suggestion"></div>
  </form>
</section>
<article class="p-list" mon="action=click">
  <ul class="w-sort j-w-sort clearfix" mon="action=click&amp;type=selectorBar">
    <li class="" data-type="category" mon="content=cate"><!--{if $group_id}-->${get_category_name($group_id)}<!--{else}-->分类<!--{/if}--></li>
    <li class="" data-type="area" mon="content=area">地区</li>
    <li class="" data-type="order" mon="content=order">排序</li>
  </ul>
  <div class="w-sort-container j-w-sort-container" mon="action=click">
    <section id="category" class="j-category w-sort__2col" mon="action=click">
      <ul class="nav j-nav" mon="type=mainCate" style="width:100%;">
        <li data-count="{$all_num}" data-query="cateId=0" style="width:50%;">
          <a href="category.php">全部分类<label style="float:right;">{$all_num}&nbsp;&gt;</label></a>
        </li>
       <!-- <li> ${current_team_category_c($group_id)}<i class="nearby-up"></i></li>-->
        
        <!--{loop $cate $tindex $one}-->
        
        	<a data-count="{$one['count']}" class="menu" style="color:#666666;" onClick="showSub({$tindex})">
        		<li onMouseOver="this.style.backgroundColor='#efefef'" onMouseOut="this.style.backgroundColor='#FFFFFF'"   style="width:50%;" id="menu{$one['id']}">{$one['name']}<label style="float:right;">{$one['count']}&nbsp;&gt;</label></li>
        	</a>
               <div  id="subcate{$one['id']}" style=" display:none; width:45%; margin:-60px 0 0 0;position:absolute;top:60px;right:0;" class="submenu">
               		<ul class="nav j-nav" mon="type=mainCate" style=" background-color:#efefef; margin-left:10px;">
                         <li data-count="{$one['count']}" data-query="gid={$one['id']}">
                          <a href="category.php?gid={$one['id']}">全部<label style="float:right;">[{$one['count']}]</label></a>
                        </li>
                <!--{loop $one['fid'] $findex $fone}-->
                    <a data-count="{$fone['count']}" style="color:#666666; " href="category.php?gid={$one['id']}&fid_s={$fone['id']}">
                        <li class="s-has-sub" >{$fone['name']}<label style="float:right;">[{$fone['count']}]</label></li>
                    </a>
                <!--{/loop}-->
                </ul>
                </div>
        <!--{/loop}-->
        
      </ul>
    </section>
    <section id="area" class="j-area w-sort__2col" mon="action=click">
      <ul class="nav j-nav" mon="type=mainArea">
      <!--  <li>${current_area_category_area($group_id)}</li>-->
        <!--{if ($area_list)}-->
        <!--{loop $area_list $one_sq}-->
        
        <!--${
					  $daytime = time();
    
                         $one_sq_id = $one_sq['id'];
					$condition_ev56_s3 = " city_id = $city_id and area_id = $one_sq_id and  end_time > $daytime and begin_time <  $daytime";
				  $ev56_num_3 = Table::Count('team', $condition_ev56_s3);
                  

		}-->
        
        <li class="s-has-sub" data-count="{$ev56_num_3}"><a href="category.php?gid={$gid}&fid_s={$fid_s}&aid={$one_sq['id']}">{$one_sq['name']}
		
		</a></li>
       
        <!--{/loop}-->
        
        <!--{/if}-->
        
      </ul>
    </section>
    <section id="order" class="j-order w-sort__single" mon="action=click&amp;type=sort">
      <ul>
        <li data-query="listorder=0">
          <a href="category.php?gid={$gid}&fid_s={$fid_s}&aid={$area}">默认排序</a>
        </li>
        <li data-query="listorder=2">
          <a href="category.php?gid={$gid}&fid_s={$fid_s}&aid={$area}&s=b">销量最高</a>
        </li>
        <li data-query="listorder=3">
          <a href="category.php?gid={$gid}&fid_s={$fid_s}&aid={$area}&s=jg">价格最低</a>
        </li>
        <!--{if $lat && $lon}-->
         <li data-query="listorder=5">
          <a href="category.php?gid={$gid}&fid_s={$fid_s}&aid={$area}&s=jl">距离最近</a>
        </li>
        <!--{/if}-->
        <li data-query="listorder=4">
          <a href="category.php?gid={$gid}&fid_s={$fid_s}&aid={$area}&s=zk">折扣排序</a>
        </li>
      </ul>
    </section>
  </div>
  <div id="j-goods-container">
    
    <!--{loop $teams $tindex $team}-->
    
    <section class="w-goods " mon="action=click&amp;type=item">
      <a href="team.php?id={$team['id']}" mon="query=&amp;page_catg=0&amp;nuomi_order=0&amp;content=item0&amp;dealTinyUrl=swdbwplc&amp;deal_id=964894&amp;nuomi_index=0&amp;pageindex=0" class="clearfix" name="0" id="0">
      <div class="img-wrapper">
        <span class="tag-free-reservation"></span>
        <img style="visibility: visible;" src="${team_image($team['image'], true)}" height="79" width="118">
      </div>
      <ul>
        <li class="title"><span class="store "></span>
          <span class="item-name">{$team['title']}</span>
        </li>
        <li class="info">【${get_partner_name($team['partner_id'])}】
        <!--${
    $distancetip;
    if($lat && $lon){
        if($team['longitude']&& $team['latitude']){
            $distance=round(getdistance($lat,$lon,$team['latitude'],$team['longitude']),2);
            $distancetip=$distance.'km';
        }else{
            $distancetip='未知';
        }
    }else{
    	$distancetip='不详';
    }
  }-->
        <span id="distance" style="float:right;color:#2fc9bc; font-weight:900;">{$distancetip}</span>
        </li>
        <li class="others"><ins>${moneyit($team['team_price'])}</ins><span class="slash">/</span>
          <del class="old-price">{$currency}${moneyit($team['market_price'])}</del>
          <span class="bought">{$team['now_number']}</span>
        </li>
      </ul>
      </a>
    </section>
    <!--{/loop}-->
     <div style="padding:10px 15px; background:#fff;">
     <a style="color:#48D9CF; letter-spacing:1px;" href="category.php?gid={$group_id}&fid_s={$fid_s}&size=100" mon="type=more">查看全部产品</a></div>
  </div>
 </article>

<!--{include wap_footer}-->


</body>
</html>
